﻿
namespace DCT.Model
{
    public class SignalModel : DeviceBaseModel
    {
        public SignalModel()
            : base()
        {
            _signalDevice = new SignalDevice();
        }

        public SignalModel(SignalDevice sg, Device device)
            : base(device)
        {
            _signalDevice = sg;
        }

        SignalDevice _signalDevice;

        public SignalDevice Signal
        {
            get
            {
                return _signalDevice;
            }
        }

        public override int DeviceID
        {
            get
            {
                return _signalDevice.DeviceID;
            }
            set
            {
                _signalDevice.DeviceID = value;
                _device.DeviceID = value;
            }
        }
    }
}
